set(ICE_ROOT ${CMAKE_SOURCE_DIR}/libs/ice_msvc2019)

set(ICE_INCLUDE_DIRS ${ICE_ROOT}/include)
set(ICE_LIBRARY_DIRS ${ICE_ROOT}/lib/${PLATFORM}/Release)
set(ICE_RUNTIME_DIR ${ICE_ROOT}/bin/${PLATFORM}/Release)

if (MSVC)
    set(ICE_LIBRARIES ice37++11)
else()
    set(ICE_LIBRARIES Ice++11)
endif()

set(ICE_SLICE_DIR ${CMAKE_SOURCE_DIR}/src/share/ice/slice)
set(ICE_CPP_DIR ${CMAKE_SOURCE_DIR}/src/share/ice/cpp)

include_directories(
    ${ICE_INCLUDE_DIRS}
    ${ICE_CPP_DIR}
    )

link_directories(${ICE_LIBRARY_DIRS})
link_libraries(${ICE_LIBRARIES})

add_compile_definitions(ICE_CPP11_MAPPING)
